package chen.huai.jie.spring.xmlconfig.mq.activemq.receiver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.jms.Message;
import javax.jms.MessageListener;

@Component
public class ActiveMqTopicReceiver implements MessageListener {
    private Logger logger = LoggerFactory.getLogger(ActiveMqTopicReceiver.class);

    public void onMessage(Message message) {
        logger.info(message.toString());
    }
}
